package controller;

import java.util.Observable;
import java.util.Observer;

/**
 * Serializes the object on update.
 * @author Janelle
 * 
 * Contributions: Owen
 *
 */
public class SerializableController implements Observer{

	/**
	 * Constructor for SerializableController which observes objects serializing them when updated.
	 */
	public SerializableController() {

	}
	@Override
	public void update(Observable arg0, Object arg1) {
		FileWriter.writeSerializable(arg0, (String) arg1);
	}


}